package com.dubito.pattern.创建型模式.工厂模式.工厂方法;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class Apple implements Fruit {

    private int treeAge;

    public int getTreeAge() {
        return treeAge;
    }

    public void setTreeAge(int treeAge) {
        this.treeAge = treeAge;
    }

    @Override
    public void grow() {
        System.out.println("苹果正在生长.");
    }

    @Override
    public void harvest() {
        System.out.println("收获苹果");
    }

    @Override
    public void plant() {
        System.out.println("种植苹果");
    }
}
